import request from "@/utils/request";

// 学院专业班级-级联方法
export function fetchPersonnelGangedData(query = {}) {
  return request({
    url: "/personnel/personnel/list",
    method: "post",
    data: query,
  });
}

// 教师字典表-用于下拉选择
export function fetchTeacherList(query = {}) {
  return request({
    url: "/personnel/teacher/selected/list",
    method: "post",
    data: query,
  });
}

// 专业字典表-用于下拉选择
export function fetchMajorList(query = {}) {
  return request({
    url: "/personnel/personnel/selectEduMajorList",
    method: "post",
    data: query,
  });
}

// 班级字典表-用于下拉选择
export function fetchClassList(query = {}) {
  return request({
    url: "/personnel/personnel/selectEduClazzList",
    method: "post",
    data: query,
  });
}

// 课程字典表-用于下拉选择
export function fetchCourseList(query = {}) {
  return request({
    url: "/edu/course/select",
    method: "get",
    params: query,
  });
}

// 获取课程章节-用于下拉选择
export function fetchChapterList(query = {}) {
  return request({
    url: "/edu/course/chapter/select",
    method: "get",
    params: query,
  });
}